package app;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;

import javax.swing.JFrame;

/**
 * Main Class of this Application. Initiates Model, View and Controller.
 * 
 * @author MK
 * 
 */
public class TeamManagementTool {

	public static void main(String[] args) {

		Model model = new Model();
		Controller controller = new Controller(model);
		View view = new View(model, controller);
		controller.setView(view);

		JFrame mainFrame = new JFrame();

		Container container = mainFrame.getContentPane();
		container.setLayout(new BorderLayout());
		container.add(view, BorderLayout.CENTER);

		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		mainFrame.setSize(1000, 800);
		mainFrame.setMinimumSize(new Dimension(700,515));
		mainFrame.setVisible(true);
	}
}